package com.kuaimacode.kframework.exception;

import lombok.Getter;

/**
 * @author qinyong
 * @Title:
 * @Package com.kuaimacode.kframework.exception
 * @Description: created by IntelliJ IDEA
 * @date 2019-03-08 23:19
 */
@Getter
public enum ErrorEnum {
    /**
     *
     */
    PARAM_VALID_ERROR("1001", "参数校验失败"),
    SYSTEM_ERROR("10000", "系统异常"),
    ACCESS_CODE_VALIDATE_ERROR("10001", "accessCode校验失败"),
    VERIFY_CODE_VALID_ERROR("10002", "验证码校验失败"),
    OPEN_ID_NOT_EXISTS_OR_HAS_BIND("10003", "openId不存在或已绑定"),
    PHONE_BIND_ERROR("10004", "手机号绑定失败"),
    VERIFY_CODE_NOT_EXISTS("10005", "验证码不存在"),
    VERIFY_CODE_IS_EXPIRED("10006", "验证码已过期"),
    USER_NOT_EXISTS("10007", "无用户信息"),
    OLD_PHONE_ERROR("10008", "原手机号错误"),
    PHONE_ALREADY_EXISTS("10009", "手机号已存在"),
    NEW_PHONE_EQUALS_OLD_PHONE("10010", "新手机号与原手机号相同"),
    MOBILE_ERROR("10011", "手机号格式错误"),
    VERIFY_CODE_SEND_ERROR("10012", "验证码发送失败"),
    IMG_SUFFIX_NOT_ALLOW("10013", "图片格式不正确"),
    IMG_UPLOAD_ERROR("10014", "图片上传失败"),
    USER_HEAD_IMG_NOT_EXISTS("10015", "用户头像文件不存在"),
    USER_PHONE_NO_REG_USER("10016", "手机号没有注册用户信息"),
    USER_PHONE_HAVE_REGING("10017", "该手机号正在认证"),
    USER_PHONE_HAVED_REG("10018", "该手机号已认证"),
    GET_CERTIFICATE_TOKEN_ERROR("10019", "获取实名认证token失败"),
    GET_CERTIFY_STATUS_ERROR("10020", "获取认证状态失败"),
    GET_SESSION_AGENT_ERROR("10021", "获取分站信息失败，请重新绑定"),
    DOS_NOT_HAVE_PERMISSION("10022", "无权访问接口"),
    USER_ALREADY_IS_PARTNER("10023", "用户已申请为商家"),
    PUSH_DEVICE_TYPE_ERROR("10024", "设备类型错误"),
    AGENT_ALREADY_EXISTS("10025", "分站已存在"),
    AGENT_PHONE_NOT_NULL("10026", "分站联系人不能为空"),
    AGENT_NOT_EXISTS("10027", "分站不存在"),
    AGENT_ADMIN_NOT_EXISTS("10028", "分站管理员不存在"),
    AGENT_CONTACT_PHONE_EXISTS("10029", "分站联系人手机号已存在"),
    WEI_XIN_LOGIN_API_EXCEPTION("10030", "微信登陆api异常"),
    CERTIFY_DATA_NOT_COMPLETE("10031", "实名资料不完整"),
    CALL_ALI_SERVICE_ERROR("10032", "调用阿里实名认证失败"),
    CERTIFY_ERROR("10033", "实名认证失败"),
    USER_ALREADY_CERTIFY("10034", "用户不存在或已实名"),
    USER_WITHDRAWAL_STATUS_ERROR("10035", "提现申请已被处理"),
    USER_BALANCE_NOT_ENOUGH("10036", "账户余额不足"),
    PAYMENT_HANDLING_FEE_RATIO_NULL("10037", "提现手续费未设置"),
    PARTNER_APPLYING_OR_AGREED("10038", "合作商家申请中或已同意"),
    AGENT_NOT_OPEN("10039", "分站未开通"),
    SMS_SEND_FREQUENTLY("10040", "短信发送过于频繁"),
    DECRYPT_MOBILE_ERROR("10041", "解密手机号错误"),
    ALI_MOBILE_GET_ERROR("10042", "阿里手机号获取失败"),

    ORDER_INFO_NOT_INCOMPLETE("20001", "订单信息不完整"),
    AGENT_NOT_NORMAL_OR_NOT_EXIST("20002", "当前地区未开通"),
    LESS_THAN_INSURANCE_AMOUNT("20003", "小于最低保价金额"),
    GREATHER_THAN_INSURANCE_AMOUNT("20004", "大于最高保价金额"),
    COUPON_INFO_NOT_EXIST("20005", "优惠券信息不存在"),
    ORDER_NOT_EXIST("20006", "订单不存在"),
    SERVICE_TYPE_NOT_EXIST("20007", "未开通的服务类型"),
    ORDER_NOT_CANCLE("20008", "订单不允许取消"),
    ERROR_PAY_TYPE("20009", "错误的支付方式"),
    PARTNER_NOT_EXIST("20010", "合作商家信息不存在"),
    ORDER_STATUS_NOT_OK("20011", "订单状态不正确"),
    ORDER_EVALUATE_HAS_EXIST("20012", "订单已评价"),
    DATA_NOT_EXIST("20013", "数据不存在"),
    NO_AUTH_OPERATION("20014", "没有操作权限"),
    COUPON_NOT_SCOPE_TYPE("20015", "优惠券不适用于当前类型"),
    ORDER_FEEDBACK_HAS_EXIST("20016", "订单已投诉"),
    MUST_CHOOSE_MASTER("20017", "请先选择师傅"),
    NOT_CHOOSE_SELF("20018", "不能选择本人服务"),
    NO_COLLECTION_AMOUNT("20019", "该订单没有代收货款"),
    NO_PARTNER_NUMBER("20020", "请输入合作商家订单数"),
    NO_TASKTIME("20021", "请输入发货时间"),
    NOT_SURE_TASKTIME("20027", "发货时间不正确"),
    NO_ORDER_TYPE("20022", "订单类型不能为空"),
    NO_ORDER_CHILD_TYPE("20023", "订单二级类型不能为空"),
    WEIGHT_OVER_MAX("20027", "重量超过最大限制重量"),

    NO_CATEGORY("20024", "请选择分类"),
    NO_FROM_ADDRESS("20025", "请选择起始地址"),
    NO_TO_ADDRESS("20026", "请选择目的地址"),
    ADDRESS_NOT_COMPLETE("20027", "请完善地址信息"),
    DO_FAIL("20028", "操作失败"),
    NO_REAL_CATEGORY("20029", "分类选择错误"),

    ORDER_DETAIL_NOT_EXIST("30001", "订单信息获取失败"),
    USER_PHONE_NOT_FOUND("30002", "用户手机号码不存在"),
    ORDER_RECIVED_ERROR("30003", "接单失败"),
    ORDER_UPDATE_ERROR("30004", "订单更新失败"),
    MASTER_FORCE_ERROR("30005", "强制到达失败"),
    MASTER_AUTHEN_COMIT_ERROR("30006", "验证提交失败"),
    MASTER_AGENT_ERROR("30007", "认证师傅不属于该分站"),
    ORDER_NO_EMPTY("30008", "订单号为空"),
    ORDER_DECIDED_EMPTY("30009", "操作标识为空"),
    UPDATE_LOCATION_ERROR("30010", "更新位置失败"),
//    ORDER_NO_EMPTY("30011", "订单号为空"),
    ORDER_MESSAGE_EMPTY("30011", "订单信息为空"),
    REQUEST_PARAM_EMPTY("30012", "请求参数为空"),
    PICTURE_PARAM_EMPTY("30013", "图片列表为空"),
    PICTURE_GOODS_EMPTY("30014", "货物图片为空"),
    RECIPT_MESSAGE_NOT_EXIST("30015", "收货信息不存在"),
    UPDATE_STATUS_ERROR("30016", "更新信息失败"),
    MASTER_STATUS_PARAM_ERROR("30017", "师傅状态传入错误"),
    MASTER_STATUS_NOT_IN("30018", "师傅收工状态，请点击立即接单"),


    INVITE_NOT_EXIST("40001","当前未设置邀请活动"),

    BANK_CARD_ERR("50001","银行卡号错误"),
    BANK_CARD_EXIST("50002","该银行卡已添加"),

    ;

    private String code;
    private String msg;

    ErrorEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
